/*
 * MIT License
 *
 * Copyright (c) 2025 Mark·虎
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package com.hsxxherp.key.support.i18n.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hsxxherp.key.support.model.entity.BaseAuditEntity;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(name = "I18nLocale", description = "国际化语言环境实体类，包含语言环境代码、描述、是否为默认语言环境以及是否启用等信息")
@TableName("i18n_locale")
public class I18nLocale extends BaseAuditEntity {

    /**
     * 语言环境代码
     */
    @TableField("locale_code")
    @Schema(description = "语言环境代码，用于唯一标识一个语言环境，例如 'zh-CN' 表示中文简体", example = "zh-CN")
    private String localeCode;

    /**
     * 语言环境的描述信息
     */
    @TableField("description")
    @Schema(description = "语言环境的描述信息，用于对该语言环境进行简要说明", example = "中文简体语言环境")
    private String description;

    /**
     * 是否为默认语言环境
     */
    @TableField("is_default")
    @Schema(description = "是否为默认语言环境，true 表示是默认语言环境，false 表示不是", example = "false")
    private Boolean isDefault;

    /**
     * 该语言环境是否启用
     */
    @TableField("is_enabled")
    @Schema(description = "该语言环境是否启用，true 表示启用，false 表示禁用", example = "true")
    private Boolean isEnabled;

    public Boolean getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Boolean enabled) {
        isEnabled = enabled;
    }

    public String getLocaleCode() {
        return localeCode;
    }

    public void setLocaleCode(String localeCode) {
        this.localeCode = localeCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean aDefault) {
        isDefault = aDefault;
    }
}